package com.gxh.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户收藏信息")
public class UserHistoryVO implements Serializable {
    @ApiModelProperty("收藏id")
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("用户id")
    private Long userId;
    @ApiModelProperty("用户昵称")
    private String nickName;
    @ApiModelProperty("设备id")
    private Long machineId;
    @ApiModelProperty("设备名称")
    private String name;
    @ApiModelProperty("设备图片")
    private String firstImage;
    @ApiModelProperty("设备价格")
    private Integer price;
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
}
